package com.droowa.domain;

import java.io.Serializable;

public class DeliveryEnterpriseManagement implements Serializable{
	
	private String deliveryEnterpriseId;
	private String enterpriseName;
	private String tel;
	private String tel2;
	private String email;
	private int defaultDeliveryFee;
	private String specialnessLocationName;
	private int locationAddFee;
	private String homepage;
	
	
	public DeliveryEnterpriseManagement() {
		super();
	}
	public DeliveryEnterpriseManagement(String deliveryEnterpriseId,
			String enterpriseName, String tel, String tel2, String email,
			int defaultDeliveryFee, String specialnessLocationName,
			int locationAddFee, String homepage) {
		super();
		this.deliveryEnterpriseId = deliveryEnterpriseId;
		this.enterpriseName = enterpriseName;
		this.tel = tel;
		this.tel2 = tel2;
		this.email = email;
		this.defaultDeliveryFee = defaultDeliveryFee;
		this.specialnessLocationName = specialnessLocationName;
		this.locationAddFee = locationAddFee;
		this.homepage = homepage;
	}
	/**
	 * @return the deliveryEnterpriseId
	 */
	public String getDeliveryEnterpriseId() {
		return deliveryEnterpriseId;
	}
	/**
	 * @param deliveryEnterpriseId the deliveryEnterpriseId to set
	 */
	public void setDeliveryEnterpriseId(String deliveryEnterpriseId) {
		this.deliveryEnterpriseId = deliveryEnterpriseId;
	}
	/**
	 * @return the enterpriseName
	 */
	public String getEnterpriseName() {
		return enterpriseName;
	}
	/**
	 * @param enterpriseName the enterpriseName to set
	 */
	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}
	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}
	/**
	 * @return the tel2
	 */
	public String getTel2() {
		return tel2;
	}
	/**
	 * @param tel2 the tel2 to set
	 */
	public void setTel2(String tel2) {
		this.tel2 = tel2;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the defaultDeliveryFee
	 */
	public int getDefaultDeliveryFee() {
		return defaultDeliveryFee;
	}
	/**
	 * @param defaultDeliveryFee the defaultDeliveryFee to set
	 */
	public void setDefaultDeliveryFee(int defaultDeliveryFee) {
		this.defaultDeliveryFee = defaultDeliveryFee;
	}
	/**
	 * @return the specialnessLocationName
	 */
	public String getSpecialnessLocationName() {
		return specialnessLocationName;
	}
	/**
	 * @param specialnessLocationName the specialnessLocationName to set
	 */
	public void setSpecialnessLocationName(String specialnessLocationName) {
		this.specialnessLocationName = specialnessLocationName;
	}
	/**
	 * @return the locationAddFee
	 */
	public int getLocationAddFee() {
		return locationAddFee;
	}
	/**
	 * @param locationAddFee the locationAddFee to set
	 */
	public void setLocationAddFee(int locationAddFee) {
		this.locationAddFee = locationAddFee;
	}
	/**
	 * @return the homepage
	 */
	public String getHomepage() {
		return homepage;
	}
	/**
	 * @param homepage the homepage to set
	 */
	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DeliveryEnterpriseManagement [deliveryEnterpriseId="
				+ deliveryEnterpriseId + ", enterpriseName=" + enterpriseName
				+ ", tel=" + tel + ", tel2=" + tel2 + ", email=" + email
				+ ", defaultDeliveryFee=" + defaultDeliveryFee
				+ ", specialnessLocationName=" + specialnessLocationName
				+ ", locationAddFee=" + locationAddFee + ", homepage="
				+ homepage + "]";
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + defaultDeliveryFee;
		result = prime
				* result
				+ ((deliveryEnterpriseId == null) ? 0 : deliveryEnterpriseId
						.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result
				+ ((enterpriseName == null) ? 0 : enterpriseName.hashCode());
		result = prime * result
				+ ((homepage == null) ? 0 : homepage.hashCode());
		result = prime * result + locationAddFee;
		result = prime
				* result
				+ ((specialnessLocationName == null) ? 0
						: specialnessLocationName.hashCode());
		result = prime * result + ((tel == null) ? 0 : tel.hashCode());
		result = prime * result + ((tel2 == null) ? 0 : tel2.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DeliveryEnterpriseManagement other = (DeliveryEnterpriseManagement) obj;
		if (defaultDeliveryFee != other.defaultDeliveryFee)
			return false;
		if (deliveryEnterpriseId == null) {
			if (other.deliveryEnterpriseId != null)
				return false;
		} else if (!deliveryEnterpriseId.equals(other.deliveryEnterpriseId))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (enterpriseName == null) {
			if (other.enterpriseName != null)
				return false;
		} else if (!enterpriseName.equals(other.enterpriseName))
			return false;
		if (homepage == null) {
			if (other.homepage != null)
				return false;
		} else if (!homepage.equals(other.homepage))
			return false;
		if (locationAddFee != other.locationAddFee)
			return false;
		if (specialnessLocationName == null) {
			if (other.specialnessLocationName != null)
				return false;
		} else if (!specialnessLocationName
				.equals(other.specialnessLocationName))
			return false;
		if (tel == null) {
			if (other.tel != null)
				return false;
		} else if (!tel.equals(other.tel))
			return false;
		if (tel2 == null) {
			if (other.tel2 != null)
				return false;
		} else if (!tel2.equals(other.tel2))
			return false;
		return true;
	}
	
}
